package com.hc;

public class UserController {
    UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void save(User user){
        System.out.println("Controller层调用Service层保存User");
        userService.save(user);
    }
}
